package com.netease.g;

import android.util.Log;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

class a extends Thread
{
  Process a;
  boolean b = false;

  a(b paramb)
  {
  }

  public void a()
  {
    b.e("PaintLogThread:", "shutdown");
    this.b = true;
    if (this.a != null)
    {
      this.a.destroy();
      this.a = null;
    }
  }

  public void run()
  {
    BufferedReader localBufferedReader;
    String str;
    try
    {
      b.e("PaintLogThread:", "start");
      ArrayList localArrayList = new ArrayList();
      localArrayList.add("logcat");
      localArrayList.add("-v");
      localArrayList.add("time");
      this.a = Runtime.getRuntime().exec((String[])localArrayList.toArray(new String[localArrayList.size()]));
      localBufferedReader = new BufferedReader(new InputStreamReader(this.a.getInputStream()));
      while (true)
      {
        if (this.b)
          break label158;
        str = localBufferedReader.readLine();
        if ((str == null) || (b.h == null))
          break;
        b.a("SysLog", str, 2);
      }
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      Log.d("NTLog", "logcatToFile Exception:" + localException.toString());
    }
    while (true)
    {
      return;
      if (str != null)
        break;
      label158: localBufferedReader.close();
      if (this.a != null)
        this.a.destroy();
      this.a = null;
      b.l = null;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.g.a
 * JD-Core Version:    0.6.0
 */